<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<a href="{% url 'add' %}">添加假条</a>
<select>
    <option>病假一</option>
    <option>事假一</option>
    <option>婚假一</option>
</select><input type="submit" value="过滤">
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>事由</td>
        <td>状态</td>
        <td>类型</td>
        <td>操作</td>
    </tr>
    {% for foo in nowpage.object_list %}
        <tr>
            <td>{{ foo.id }}</td>
            <td>{{ foo.stu_name }}</td>
            <td>{{ foo.tname }}</td>
            <td>{{ foo.status }}</td>
            <td>{{ foo.leixing }}</td>
            <td><a href="">通过</a>&nbsp;<a href="">不通过</a></td>
        </tr>

    {% endfor %}
<th colspan="666">
    {% if lastpage > 0 %}
        <a href="{% url 'index' %}?page={{ lastpage }}">上一页</a>

    {% endif %}
    <b>第{{ nowpage.number }}页</b>
{% if sum >= nextpage %}
    <a href="{% url 'index' %}?page={{ nextpage }}">下一页</a>

{% endif %}

</table>
</body>
</html>